home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 1
/
Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso
/
FILES
/
HYP
/
H-I
/
HyperHackers.cpt
/
Hyper-Hackers Queue 1.0
/
card_15170.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
1KB
|
51 lines
-- card: 15170 from stack: in.0
-- bmap block id: 0
-- flags: 0000
-- background id: 3797
-- name:
-- part contents for background part 1
----- text -----
From: PUGH@NMFECC.ARPA
Date: Mon, 1 Feb 88 13:59:32 PST
Here is a nifty little script that makes an arrow button go to the next card.
It's beauty is that if you hold the button down it continues to be active
without waiting for the mouseUp. The trick was to avoid the mouseUp once the
mouseStillDown had run since at that point the user will want to remain where
he is instead of continuing to the next card. The reason for the mouseUp
handler is to account for mouse clicks that are shorter than the time alloted
to the mouseStillDown event. Check it out. I think these buttons feel real
nice.
Jon
on mouseStillDown
global beenHere
put true into beenHere
doIt
end mouseStillDown
on mouseUp
global beenHere
if beenHere is empty then put false into beenHere
if not beenHere then
doIt
end if
put false into beenHere
end mouseUp
on doIt
visual effect dissolve- put your own function in here
go to next card
end doIt
-- part contents for background part 45
----- text -----
Buttons that can be held down